package com.zj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zj.entity.Goods;
import com.zj.entity.UserInfo;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    void addGoods(UserInfo userInfo, Goods goods);
    List<Goods> getMyGoods(UserInfo userInfo);
    List<Goods> getMySellGoods(UserInfo userInfo);
    List<Goods> getMySellingGoods(UserInfo userInfo);
    List<Goods> getMyBuyGoods(UserInfo userInfo);
    List<Goods> getMyGoodsByNameOrDescription(UserInfo userInfo,String queryKey);
    List<Goods> selectPublicGoodsByNameOrDescriptionOrUserName(String queryKey);




}
